package com.king01.controller;

import com.github.pagehelper.PageInfo;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpSession;

/**
 * @author ：lqs
 * @date ：Created in 2023/9/25 17:20
 * @description：
 * @modified By：
 * @version:
 */
@Controller
@RequestMapping("/view")
public class ViewController {

    @Autowired
    private HttpSession session;

    @RequestMapping("/index")
    public String index(){
        return "index";
    }

    @RequestMapping("/toGoods")
    public String toGoods(){
        return "goods";
    }

    @RequestMapping("/toGoodsType")
    public String toGoodsType(){
        return "goodstype";
    }

    @RequestMapping("/toRole")
    public String toRole(){
        return "role";
    }

    @RequestMapping("/toLog")
    public String toLog(){
        return "log";
    }

    @RequestMapping("/toAddInventory")
    public String toAddInventory(){
        return "AddInventory";
    }

    @RequestMapping("/toInventoryEx")
    public String toInventoryEx(){
        return "InventoryEx";
    }

    @RequestMapping("/toInventoryInformation")
    public String toInventoryInformation(){
        return "InventoryInformation";
    }

    @RequestMapping("/toFrmLoss")
    public String toFrmLoss(){
        return "FrmLoss";
    }
    @RequestMapping("/toAddOutLibrary")
    public String toAddOutLibrary(){
        return "toAddOutLibrary";
    }

    @RequestMapping("/toAudit")
    public String toAudit(){
        return "toAudit";
    }
    @RequestMapping("/toEntry")
    public String toEntry(){
        return "toEntry";
    }
    @RequestMapping("/toOutLibraryEx")
    public String toOutLibraryEx(){
        return "toOutLibraryEx";
    }

    @RequestMapping("/toStaff")
    public String staff() {
        return "staff";
    }
    @RequestMapping("/toStore")
    public String toStore() {
        return "toStore";
    }

    @RequestMapping("/toDept")
    public String toDept(){return "toDept";}

    @RequestMapping("/toQuitStaff")
    public String toQuitStaff(){
        return "toQuitStaff";
    }

    @RequestMapping("/toOutLibraryInformation")
    public String toOutLibraryInformation() {
        return "OutLibraryInformation";
    }

    @RequestMapping("/toTransferEx")
    public String toTransferEx() {
        return "TransferEx";
    }

    @RequestMapping("/toTransferInformation")
    public String toTransferInformation() {
        return "TransferInformation";
    }

    @RequestMapping("/toStatistics")
    public String toStatistics() {
        return "Statistics";
    }

    @RequestMapping("/toStaffEx")
    public String toStaffEx(){
        return "toStaffEx";
    }
    @RequestMapping("/home")
    public String home() {
        return "home";
    }

    @RequestMapping("/jbxx")
    public String jbxx() {
        return "jbxx";
    }
    @RequestMapping("/tcdl")
    public String tcdl() {
        return "tcdl";
    }
    @RequestMapping("/xgmm")
    public String xgmm() {
        return "xgmm";
    }

    @RequestMapping("/toTransfer")
    public String Transfer() {
        return "Transfer";
    }

    @RequestMapping("/tuichu")
    public String tuichu(){
        session.invalidate();
        return "redirect:/login.jsp";
    }
}

